function showReport(){
	
	if(!Ext.getCmp('startTime2').isValid()){
		Ext.MessageBox.alert('',time_format_error);
		Ext.getCmp('startTime2').focus();
		return;
	}
	if(!Ext.getCmp('endTime2').isValid()){
		Ext.MessageBox.alert('',time_format_error);
		Ext.getCmp('endTime2').focus();
		return;
	}
	
	var settingSpace = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	settingSpace = settingSpace + settingSpace+ settingSpace;
	
	if(	Ext.isIE6)
		settingWin.setWidth(790);
	else
		settingWin.setWidth(760);
	
	// ====== validate date
	var b = Ext.get('from2').getValue();
    var c = Ext.get('to2').getValue();

    var fromDate = new Date();
    var toDate = new Date();
    
    if(b.indexOf("/") > -1){
    	if(locale == 'en not use'){
	    	var regx = /(\d{2})\/(\d{2})\/(\d{4})/;    	
	    	b = regx.exec(b);
	    	fromDate.setFullYear(Number(b[3]), Number(b[1])-1, Number(b[2]));
	    	b = b[3]+"-"+b[1]+"-"+b[2];
	    	
	    	c = regx.exec(c);
	    	toDate.setFullYear(Number(c[3]), Number(c[1])-1, Number(c[2]));
	    	c = c[3]+"-"+c[1]+"-"+c[2];
	    	
    	}else{ //  pt
    		var regx = /(\d{2})\/(\d{2})\/(\d{4})/;    	
        	b = regx.exec(b);
        	fromDate.setFullYear(Number(b[3]), Number(b[2])-1, Number(b[1]));
        	b = b[3]+"-"+b[2]+"-"+b[1];
        	
        	c = regx.exec(c);
        	toDate.setFullYear(Number(c[3]), Number(c[2])-1, Number(c[1]));
        	c = c[3]+"-"+c[2]+"-"+c[1];
        	
    	}
    }
    if((toDate.getTime()-fromDate.getTime()) > 24*60*60*1000*7){ // 超过3天时间
    	Ext.Msg.alert('', reportLimit);
    	return;
    }
    
    // =======validate date =======
	
	
	settingWin.setTitle(reportTitle+settingSpace+gpstracker_map[selectedTrackers[0]].trackerName+' - '+gpstracker_map[selectedTrackers[0]].userName);
	if(settingWin.getEl().select('iframe').item(0).dom.contentWindow.showWaiting)
		settingWin.getEl().select('iframe').item(0).dom.contentWindow.showWaiting();
	settingWin.getEl().select('iframe').item(0).set({src:'./gps_report.jsp?trackerid='+getCurrentTrackerId()
		+"&action=search&fromDate="+Ext.get('from2').getValue()
		+"&toDate="+Ext.get('to2').getValue()+"&state="+Ext.get("dataState").getValue()
		+"&tracker.trackerid="+getCurrentTrackerId()+"&pageSize="+Ext.get("pageSize").getValue()
		+"&startTime="+Ext.get("startTime2").getValue()+"&endTime="+Ext.get("endTime2").getValue()});
	settingWin.show();
	
	
}